<?php

class Custom_Form_Login extends Custom_Form_Abstract{
public function init()
    {
        $this->addElement('text', 'username', array(
        	'filters'	=>	array(
        		'StringTrim'
        	),
        	'validators'	=>	array(
				'EmailAddress',
        		'NotEmpty'
			),
            'decorators' => $this->elementDecorators,
            'label'       => 'Username:',
        	'required'	=>	true
        ));
        
        $this->addElement('password', 'password', array(
        	'filters'	=>	array(
        		'StringTrim'
        	),
        	'validators'	=>	array(
        		'NotEmpty'
			),
            'decorators' => $this->elementDecorators,
            'label'       => 'Password:',
        	'required'	=>	true
        ));
        
        
        $this->addElement('image', 'Login', array(
            'decorators' => $this->buttonDecorators,
            'label'       => 'Login',
        ));
    }
}